Automattic\WCShipping\LabelPurchase\LabelPurchaseService A

Total Complexity 59
Dependencies 9
Dependents 7
Total lines 608
Lines of code 328
Logical lines of code 144
Comment lines 177
Methods 14
Properties 5

Methods 14

Method Rating Maintainability Complexity Lines of code
purchase_labels()
A
34 8 103
prepare_packages_for_purchase()
A
50 13 28
get_labels_meta_from_response()
A
39 9 68
build_shipment_from_order_items()
A
44 8 41
refund_label()
S
55 5 19
get_labels()
S
57 2 18
update_user_meta()
S
66 3 8
store_selected_meta()
S
63 3 10
update_order_label()
S
71 2 6
get_shipments()
S
65 2 9
__construct()
S
69 1 7
get_status()
S
80 1 3
get_shipments_destinations()
S
75 1 4
get_shipments_origins()
S
75 1 4